package com.grass.finding;

import org.modelmapper.ModelMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication(scanBasePackages = "com.grass.finding")
public class FindingApplication {
	public static void main(String[] args) {
		SpringApplication.run(FindingApplication.class, args);
	}

	/**
	 * 注入ModelMapper
	 * @return
	 */
	@Bean
	public ModelMapper modelMapper(){
		return new ModelMapper();
	}

}
